package com.lagou.app;

import com.lagou.dao.AccountDao;
import com.lagou.entity.Account;
import org.junit.Test;

import java.sql.SQLException;

public class TestAccountDao {


    AccountDao accountDao;

    @Test
    public void testfindAccout() throws SQLException {

        Account account = accountDao.findAccount("1122334455");

        System.out.println("账户信息为：" + account);


    }

    @Test
    public void testupdateAccount() throws SQLException {
        Account account = accountDao.updateAccount("1122334455", "5544332211");

        System.out.println("更新后账户为：");

    }

}
